from medical import models
from django.core.exceptions import ValidationError
from django import forms
from medical.utils.bootstrap import BootStrapModelForm


class HospitalModelForm(BootStrapModelForm):
    class Meta:
        model = models.hospital
        fields = ["hos_id", "hos_name", "hos_province", "hos_city", "hos_email"]


class SubModelForm(BootStrapModelForm):
    class Meta:
        model = models.sub_department
        fields = ["sub_dep_id", "sub_dep_name", "main_dep"]